<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="HandheldFriendly" content="true"/>
<meta name="MobileOptimized" content="320"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit" />
<link rel="stylesheet" href="/bx/css/css.css" />
<title>7.8保险公众宣传日</title>
</head>
<body style="background: #2d96e7;">
<section id="top-banner"> <a href="#"><img src="/bx/images/banner.jpg"></a> </section>
<div class="rank-type"></div>
<section class="tlist js_list" id="day-ranking">
<p class="ranking-hint"><span class="channel">承诺参与人数</span><br>
<div style="clear:both"></div>
	#if((bw) == 'a')
	<span class="channenember" style="color:#fff">#(bw)</span>
	#else
	<span class="channenember">#(bw)</span>
	#end
	
	#if((sw) == 'a')
	<span class="channenember" style="color:#fff">#(sw)</span>
	#else
	<span class="channenember">#(sw)</span>
	#end
	
	#if((w) == 'a')
	<span class="channenember" style="color:#fff">#(w)</span>
	#else
	<span class="channenember">#(w)</span>
	#end
	
	#if((q) == 'a')
	<span class="channenember" style="color:#fff">#(q)</span>
	#else
	<span class="channenember">#(q)</span>
	#end
	
	#if((b) == 'a')
	<span class="channenember" style="color:#fff">#(b)</span>
	#else
	<span class="channenember">#(b)</span>
	#end
	
	#if((s) == 'a')
	<span class="channenember" style="color:#fff">#(s)</span>
	#else
	<span class="channenember">#(s)</span>
	#end
	
  	<span class="channenember">#(g)</span>
  <form action="/bx/user/save">
  <p>
	  <input type="hidden" name="user.weixin_code" value="#(openId)">
	  <input type="hidden" name="user.logo" value="#(logo)">
	  <input type="hidden" name="user.state" value="1">
      <input name="user.nick_name" type="text" placeholder="姓名" style="width:300px; height:35px; border:0px;font-size:17px"required>
  </p>
  <p>
    <input name="user.tel" type="text" id="recTel" placeholder="电话"  required style="width:300px; height:35px; border:0px;font-size:17px" onblur="telPhone3()" onkeyup="value=value.replace(/[^\d]/g,'')">
  </p>
  <p>
    <label for="select" class="input1"></label>
    <select name="user.company_id" style="width:300px; height:35px; border:0px;font-size:16px" required>
      <option value="">公司选择</option>
      #for(x : company)
      <option value="#(x.id)">#(x.companyName)</option>
      #end
    </select>
  </p>
  <p>
    <input name="" type="submit" value="发起承诺"  style="width:300px; height:35px; border:0px;border-radius:5px; background-color:#00d18f; color:#FFF;">
  </p>
  </form>
</section>
<!--<p class="ranking-hint">说明：今日支持数为当天新增加的支持数，非总支持数。</p>
<section id="base-nav">
  <ul>
    <li><a class="cur" href="#">排行榜</a></li>
    <li><a class="" href="#">我要承诺</a></li>
    <li><a class="" href="#">爆单彩铃</a></li>
  </ul>
</section>-->
<div style="height: 50px;"></div>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src='http://203.195.235.76/jssdk/js/zepto.min.js'></script>  
<script src="/bx/js/jquery.js"></script>
<script type="text/javascript">
$(function() {  
        var openId = "#(openId)";
        var logo = "#(logo)";
        var key = "#(key)";
        if(key == 1){
        	window.location.href="http://bxzx66.cn/bx/user/reginster?openId=#(openId)"; 
        }
        
    });  
</script> 
<script type="text/javascript">
	function telPhone3(){
	var cellPhone = $("#recTel").val();
	var RegCellPhone = /^1[3|4|5|7|8][0-9]\d{8}$/;
        falg=cellPhone.search(RegCellPhone);
      	if (cellPhone != "" && falg==-1){
          alert("手机号不合法！");
          $("#recTel").val("");
        }
};
</script>
<script type="text/javascript">
$(function() {  
        $.ajax({  
            type : "post",  
            dataType : "json",  
            url : "/bx/user/api",  
            data : {  
                url : location.href.split('#')[0] 
            },  
            complete : function() {  
            },  
            success : function(data) {  
                var a = data.map;
                var b =  a.timestamp; 
                var c =  a.nonceStr;
                var d =  a.signature;
                    wx.config({  
					    debug : false, //  
					    appId : "wx435fdd961701f449", // 必填，公众号的唯一标识  
					    timestamp : a.timestamp, // 必填，生成签名的时间戳  
					    nonceStr : a.nonceStr, // 必填，生成签名的随机串  
					    signature : a.signature,// 必填，签名，见附录1  
					    jsApiList : [ 'onMenuShareTimeline',  
					            'onMenuShareAppMessage', 'showOptionMenu' ]  
					// 必填，需要使用的JS接口列表，所有JS接口列表见附录2  
					}); 
            },  
        });  
    });  
</script> 
    <script type="text/javascript">  
    var shareTitle = "7.8保险公众宣传日";  
    var shareDesc = "让客户拥有更安心保障！";  
    var shareImg = "http://bxzx66.cn/bx/images/banner.jpg";  
    var url = "http://bxzx66.cn/bx/user";  
    wx.ready(function() {  
        share();  
    });  
    function share() {  
        wx.showOptionMenu();  
        wx.onMenuShareTimeline({  
            title : shareTitle, // 分享标题  
            link : url, // 分享链接  
            imgUrl : shareImg,  
            desc : shareDesc, // 分享描述  
            success : function() {  
            }  
        });  
        wx.onMenuShareAppMessage({  
            title : shareTitle, // 分享标题  
            link : url, // 分享链接  
            imgUrl : shareImg,  
            desc : shareDesc, // 分享描述  
            success : function() {  
            }  
        });  
    }  
     /* wx.error(function (res) {
		  alert(res.errMsg);
		});  */
</script> 
</html>